package com.entity;

import java.util.ArrayList;
import java.util.List;

public class MatchtypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public MatchtypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMtnoIsNull() {
            addCriterion("mtno is null");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNotNull() {
            addCriterion("mtno is not null");
            return (Criteria) this;
        }

        public Criteria andMtnoEqualTo(String value) {
            addCriterion("mtno =", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotEqualTo(String value) {
            addCriterion("mtno <>", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThan(String value) {
            addCriterion("mtno >", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThanOrEqualTo(String value) {
            addCriterion("mtno >=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThan(String value) {
            addCriterion("mtno <", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThanOrEqualTo(String value) {
            addCriterion("mtno <=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLike(String value) {
            addCriterion("mtno like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotLike(String value) {
            addCriterion("mtno not like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoIn(List<String> values) {
            addCriterion("mtno in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotIn(List<String> values) {
            addCriterion("mtno not in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoBetween(String value1, String value2) {
            addCriterion("mtno between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotBetween(String value1, String value2) {
            addCriterion("mtno not between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnameIsNull() {
            addCriterion("mtname is null");
            return (Criteria) this;
        }

        public Criteria andMtnameIsNotNull() {
            addCriterion("mtname is not null");
            return (Criteria) this;
        }

        public Criteria andMtnameEqualTo(String value) {
            addCriterion("mtname =", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotEqualTo(String value) {
            addCriterion("mtname <>", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameGreaterThan(String value) {
            addCriterion("mtname >", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameGreaterThanOrEqualTo(String value) {
            addCriterion("mtname >=", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLessThan(String value) {
            addCriterion("mtname <", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLessThanOrEqualTo(String value) {
            addCriterion("mtname <=", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLike(String value) {
            addCriterion("mtname like", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotLike(String value) {
            addCriterion("mtname not like", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameIn(List<String> values) {
            addCriterion("mtname in", values, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotIn(List<String> values) {
            addCriterion("mtname not in", values, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameBetween(String value1, String value2) {
            addCriterion("mtname between", value1, value2, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotBetween(String value1, String value2) {
            addCriterion("mtname not between", value1, value2, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNull() {
            addCriterion("mtdesc is null");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNotNull() {
            addCriterion("mtdesc is not null");
            return (Criteria) this;
        }

        public Criteria andMtdescEqualTo(String value) {
            addCriterion("mtdesc =", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotEqualTo(String value) {
            addCriterion("mtdesc <>", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThan(String value) {
            addCriterion("mtdesc >", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThanOrEqualTo(String value) {
            addCriterion("mtdesc >=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThan(String value) {
            addCriterion("mtdesc <", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThanOrEqualTo(String value) {
            addCriterion("mtdesc <=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLike(String value) {
            addCriterion("mtdesc like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotLike(String value) {
            addCriterion("mtdesc not like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescIn(List<String> values) {
            addCriterion("mtdesc in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotIn(List<String> values) {
            addCriterion("mtdesc not in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescBetween(String value1, String value2) {
            addCriterion("mtdesc between", value1, value2, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotBetween(String value1, String value2) {
            addCriterion("mtdesc not between", value1, value2, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtiscrossIsNull() {
            addCriterion("mtisCross is null");
            return (Criteria) this;
        }

        public Criteria andMtiscrossIsNotNull() {
            addCriterion("mtisCross is not null");
            return (Criteria) this;
        }

        public Criteria andMtiscrossEqualTo(Integer value) {
            addCriterion("mtisCross =", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossNotEqualTo(Integer value) {
            addCriterion("mtisCross <>", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossGreaterThan(Integer value) {
            addCriterion("mtisCross >", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossGreaterThanOrEqualTo(Integer value) {
            addCriterion("mtisCross >=", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossLessThan(Integer value) {
            addCriterion("mtisCross <", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossLessThanOrEqualTo(Integer value) {
            addCriterion("mtisCross <=", value, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossIn(List<Integer> values) {
            addCriterion("mtisCross in", values, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossNotIn(List<Integer> values) {
            addCriterion("mtisCross not in", values, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossBetween(Integer value1, Integer value2) {
            addCriterion("mtisCross between", value1, value2, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtiscrossNotBetween(Integer value1, Integer value2) {
            addCriterion("mtisCross not between", value1, value2, "mtiscross");
            return (Criteria) this;
        }

        public Criteria andMtlogoIsNull() {
            addCriterion("mtlogo is null");
            return (Criteria) this;
        }

        public Criteria andMtlogoIsNotNull() {
            addCriterion("mtlogo is not null");
            return (Criteria) this;
        }

        public Criteria andMtlogoEqualTo(String value) {
            addCriterion("mtlogo =", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoNotEqualTo(String value) {
            addCriterion("mtlogo <>", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoGreaterThan(String value) {
            addCriterion("mtlogo >", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoGreaterThanOrEqualTo(String value) {
            addCriterion("mtlogo >=", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoLessThan(String value) {
            addCriterion("mtlogo <", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoLessThanOrEqualTo(String value) {
            addCriterion("mtlogo <=", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoLike(String value) {
            addCriterion("mtlogo like", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoNotLike(String value) {
            addCriterion("mtlogo not like", value, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoIn(List<String> values) {
            addCriterion("mtlogo in", values, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoNotIn(List<String> values) {
            addCriterion("mtlogo not in", values, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoBetween(String value1, String value2) {
            addCriterion("mtlogo between", value1, value2, "mtlogo");
            return (Criteria) this;
        }

        public Criteria andMtlogoNotBetween(String value1, String value2) {
            addCriterion("mtlogo not between", value1, value2, "mtlogo");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}